import { TOGGLE_SHOW_LIST } from '../types'
export default function statReducer(preState = true, { type, data }) {
  switch (type) {
    case TOGGLE_SHOW_LIST:
      return !preState
    default:
      return preState
  }
}
